
import axios, {Axios} from 'axios'
const context = "/ucenter"

/**
 * 获取 UmsPermission 分页列表
*/
export function getUmsPermissionPagination(data: any) {
  return axios.get(`${context}/umsPermission/pagination`, { params: data });
}


/**
 * 获取 UmsPermission 所有数据
*/
export function getUmsPermissionAllList(data: any) {
  return axios.get(`${context}/umsPermission/all`, { params: data });
}


/**
 * 获取 UmsPermission 详情
*/
export function getUmsPermissionDetailById(id: any) {
  return axios.get(`${context}/umsPermission/${id}`, { params:{id} });
}


/**
 * 新增 UmsPermission
*/
export function addUmsPermission(data: any) {
  return axios.post(`${context}/umsPermission`, data);
}

/**
 * 修改 UmsPermission
*/
export function updateUmsPermission(data: any) {
  return axios.put(`${context}/umsPermission`, data);
}

/**
 * 删除 UmsPermission
*/
export function batchRemoveUmsPermission(data: any) {
  return axios.post(`${context}/umsPermission/batchRemove`, data);
}

    